/*
 * Copyright 2020 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cc.siyecao.mapper.model;

import javax.persistence.Column;
import javax.persistence.Table;

@Table
public class UserIds {
    @Column
    private Long id1;
    @Column
    private Long id2;
    @Column
    private String name;

    public UserIds() {
    }

    public UserIds(Long id1, Long id2) {
        this.id1 = id1;
        this.id2 = id2;
    }

    public UserIds(Long id1, Long id2, String name) {
        this.id1 = id1;
        this.id2 = id2;
        this.name = name;
    }

    public Long getId1() {
        return id1;
    }

    public void setId1(Long id1) {
        this.id1 = id1;
    }

    public Long getId2() {
        return id2;
    }

    public void setId2(Long id2) {
        this.id2 = id2;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "UserIds{" +
                "id1=" + id1 +
                ", id2=" + id2 +
                ", name='" + name + '\'' +
                '}';
    }
}
